package ooday3;

public abstract class Super {
    String name;
    int age;
    double salary;//工资
    Super(String name,int age,double salary){
        this.age=age;
        this.name=name;
        this.salary=salary;
    }
    void beOnDuty(){//上班
        System.out.println("上班");
    }
    void offDuty(){//下班
        System.out.println("下班");
    }
    abstract void work();//工作
}
